﻿using System;
using System.Diagnostics;
using System.IO;
using Google.ProtocolBuffers;
using Google.ProtocolBuffers.Descriptors;
using Google.ProtocolBuffers.FieldAccess;

namespace com.gexin.rp.sdk.dto
{
	// Token: 0x02000018 RID: 24
	[DebuggerNonUserCode]
	public sealed class ServerNotifyResult : GeneratedMessage<ServerNotifyResult, ServerNotifyResult.Builder>
	{
		// Token: 0x06000261 RID: 609 RVA: 0x00005D1B File Offset: 0x00003F1B
		private ServerNotifyResult()
		{
		}

		// Token: 0x170000FC RID: 252
		// (get) Token: 0x06000262 RID: 610 RVA: 0x00005D40 File Offset: 0x00003F40
		public static ServerNotifyResult DefaultInstance
		{
			get
			{
				return ServerNotifyResult.defaultInstance;
			}
		}

		// Token: 0x170000FD RID: 253
		// (get) Token: 0x06000263 RID: 611 RVA: 0x00005D47 File Offset: 0x00003F47
		public override ServerNotifyResult DefaultInstanceForType
		{
			get
			{
				return ServerNotifyResult.DefaultInstance;
			}
		}

		// Token: 0x170000FE RID: 254
		// (get) Token: 0x06000264 RID: 612 RVA: 0x00002579 File Offset: 0x00000779
		protected override ServerNotifyResult ThisMessage
		{
			get
			{
				return this;
			}
		}

		// Token: 0x170000FF RID: 255
		// (get) Token: 0x06000265 RID: 613 RVA: 0x00005D4E File Offset: 0x00003F4E
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GtReq.internal__static_com_gexin_rp_sdk_dto_ServerNotifyResult__Descriptor;
			}
		}

		// Token: 0x17000100 RID: 256
		// (get) Token: 0x06000266 RID: 614 RVA: 0x00005D55 File Offset: 0x00003F55
		protected override FieldAccessorTable<ServerNotifyResult, ServerNotifyResult.Builder> InternalFieldAccessors
		{
			get
			{
				return GtReq.internal__static_com_gexin_rp_sdk_dto_ServerNotifyResult__FieldAccessorTable;
			}
		}

		// Token: 0x17000101 RID: 257
		// (get) Token: 0x06000267 RID: 615 RVA: 0x00005D5C File Offset: 0x00003F5C
		public bool HasSeqId
		{
			get
			{
				return this.hasSeqId;
			}
		}

		// Token: 0x17000102 RID: 258
		// (get) Token: 0x06000268 RID: 616 RVA: 0x00005D64 File Offset: 0x00003F64
		public string SeqId
		{
			get
			{
				return this.seqId_;
			}
		}

		// Token: 0x17000103 RID: 259
		// (get) Token: 0x06000269 RID: 617 RVA: 0x00005D6C File Offset: 0x00003F6C
		public bool HasInfo
		{
			get
			{
				return this.hasInfo;
			}
		}

		// Token: 0x17000104 RID: 260
		// (get) Token: 0x0600026A RID: 618 RVA: 0x00005D74 File Offset: 0x00003F74
		public string Info
		{
			get
			{
				return this.info_;
			}
		}

		// Token: 0x17000105 RID: 261
		// (get) Token: 0x0600026B RID: 619 RVA: 0x00005D7C File Offset: 0x00003F7C
		public override bool IsInitialized
		{
			get
			{
				return this.hasSeqId;
			}
		}

		// Token: 0x0600026C RID: 620 RVA: 0x00005D8C File Offset: 0x00003F8C
		public override void WriteTo(ICodedOutputStream output)
		{
			this.CalcSerializedSize();
			string[] serverNotifyResultFieldNames = ServerNotifyResult._serverNotifyResultFieldNames;
			if (this.hasSeqId)
			{
				output.WriteString(1, serverNotifyResultFieldNames[1], this.SeqId);
			}
			if (this.hasInfo)
			{
				output.WriteString(2, serverNotifyResultFieldNames[0], this.Info);
			}
			this.UnknownFields.WriteTo(output);
		}

		// Token: 0x17000106 RID: 262
		// (get) Token: 0x0600026D RID: 621 RVA: 0x00005DE4 File Offset: 0x00003FE4
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				return this.CalcSerializedSize();
			}
		}

		// Token: 0x0600026E RID: 622 RVA: 0x00005E04 File Offset: 0x00004004
		private int CalcSerializedSize()
		{
			int num = this.memoizedSerializedSize;
			if (num != -1)
			{
				return num;
			}
			num = 0;
			if (this.hasSeqId)
			{
				num += CodedOutputStream.ComputeStringSize(1, this.SeqId);
			}
			if (this.hasInfo)
			{
				num += CodedOutputStream.ComputeStringSize(2, this.Info);
			}
			num += this.UnknownFields.SerializedSize;
			this.memoizedSerializedSize = num;
			return num;
		}

		// Token: 0x0600026F RID: 623 RVA: 0x00005E64 File Offset: 0x00004064
		public static ServerNotifyResult ParseFrom(ByteString data)
		{
			return ServerNotifyResult.CreateBuilder().MergeFrom(data).BuildParsed();
		}

		// Token: 0x06000270 RID: 624 RVA: 0x00005E76 File Offset: 0x00004076
		public static ServerNotifyResult ParseFrom(ByteString data, ExtensionRegistry extensionRegistry)
		{
			return ServerNotifyResult.CreateBuilder().MergeFrom(data, extensionRegistry).BuildParsed();
		}

		// Token: 0x06000271 RID: 625 RVA: 0x00005E89 File Offset: 0x00004089
		public static ServerNotifyResult ParseFrom(byte[] data)
		{
			return ServerNotifyResult.CreateBuilder().MergeFrom(data).BuildParsed();
		}

		// Token: 0x06000272 RID: 626 RVA: 0x00005E9B File Offset: 0x0000409B
		public static ServerNotifyResult ParseFrom(byte[] data, ExtensionRegistry extensionRegistry)
		{
			return ServerNotifyResult.CreateBuilder().MergeFrom(data, extensionRegistry).BuildParsed();
		}

		// Token: 0x06000273 RID: 627 RVA: 0x00005EAE File Offset: 0x000040AE
		public static ServerNotifyResult ParseFrom(Stream input)
		{
			return ServerNotifyResult.CreateBuilder().MergeFrom(input).BuildParsed();
		}

		// Token: 0x06000274 RID: 628 RVA: 0x00005EC0 File Offset: 0x000040C0
		public static ServerNotifyResult ParseFrom(Stream input, ExtensionRegistry extensionRegistry)
		{
			return ServerNotifyResult.CreateBuilder().MergeFrom(input, extensionRegistry).BuildParsed();
		}

		// Token: 0x06000275 RID: 629 RVA: 0x00005ED3 File Offset: 0x000040D3
		public static ServerNotifyResult ParseDelimitedFrom(Stream input)
		{
			return ServerNotifyResult.CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
		}

		// Token: 0x06000276 RID: 630 RVA: 0x00005EE5 File Offset: 0x000040E5
		public static ServerNotifyResult ParseDelimitedFrom(Stream input, ExtensionRegistry extensionRegistry)
		{
			return ServerNotifyResult.CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
		}

		// Token: 0x06000277 RID: 631 RVA: 0x00005EF8 File Offset: 0x000040F8
		public static ServerNotifyResult ParseFrom(ICodedInputStream input)
		{
			return ServerNotifyResult.CreateBuilder().MergeFrom(input).BuildParsed();
		}

		// Token: 0x06000278 RID: 632 RVA: 0x00005F0A File Offset: 0x0000410A
		public static ServerNotifyResult ParseFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
		{
			return ServerNotifyResult.CreateBuilder().MergeFrom(input, extensionRegistry).BuildParsed();
		}

		// Token: 0x06000279 RID: 633 RVA: 0x00002579 File Offset: 0x00000779
		private ServerNotifyResult MakeReadOnly()
		{
			return this;
		}

		// Token: 0x0600027A RID: 634 RVA: 0x00005F1D File Offset: 0x0000411D
		public static ServerNotifyResult.Builder CreateBuilder()
		{
			return new ServerNotifyResult.Builder();
		}

		// Token: 0x0600027B RID: 635 RVA: 0x00005F24 File Offset: 0x00004124
		public override ServerNotifyResult.Builder ToBuilder()
		{
			return ServerNotifyResult.CreateBuilder(this);
		}

		// Token: 0x0600027C RID: 636 RVA: 0x00005F1D File Offset: 0x0000411D
		public override ServerNotifyResult.Builder CreateBuilderForType()
		{
			return new ServerNotifyResult.Builder();
		}

		// Token: 0x0600027D RID: 637 RVA: 0x00005F2C File Offset: 0x0000412C
		public static ServerNotifyResult.Builder CreateBuilder(ServerNotifyResult prototype)
		{
			return new ServerNotifyResult.Builder(prototype);
		}

		// Token: 0x0600027E RID: 638 RVA: 0x00005F34 File Offset: 0x00004134
		static ServerNotifyResult()
		{
			FileDescriptor descriptor = GtReq.Descriptor;
		}

		// Token: 0x0400014A RID: 330
		private static readonly ServerNotifyResult defaultInstance = new ServerNotifyResult().MakeReadOnly();

		// Token: 0x0400014B RID: 331
		private static readonly string[] _serverNotifyResultFieldNames = new string[]
		{
			"info",
			"seqId"
		};

		// Token: 0x0400014C RID: 332
		private static readonly uint[] _serverNotifyResultFieldTags = new uint[]
		{
			18u,
			10u
		};

		// Token: 0x0400014D RID: 333
		public const int SeqIdFieldNumber = 1;

		// Token: 0x0400014E RID: 334
		private bool hasSeqId;

		// Token: 0x0400014F RID: 335
		private string seqId_ = "";

		// Token: 0x04000150 RID: 336
		public const int InfoFieldNumber = 2;

		// Token: 0x04000151 RID: 337
		private bool hasInfo;

		// Token: 0x04000152 RID: 338
		private string info_ = "";

		// Token: 0x04000153 RID: 339
		private int memoizedSerializedSize = -1;

		// Token: 0x02000065 RID: 101
		[DebuggerNonUserCode]
		public sealed class Builder : GeneratedBuilder<ServerNotifyResult, ServerNotifyResult.Builder>
		{
			// Token: 0x1700033D RID: 829
			// (get) Token: 0x06000810 RID: 2064 RVA: 0x00002579 File Offset: 0x00000779
			protected override ServerNotifyResult.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}

			// Token: 0x06000811 RID: 2065 RVA: 0x0001314A File Offset: 0x0001134A
			public Builder()
			{
				this.result = ServerNotifyResult.DefaultInstance;
				this.resultIsReadOnly = true;
			}

			// Token: 0x06000812 RID: 2066 RVA: 0x00013164 File Offset: 0x00011364
			internal Builder(ServerNotifyResult cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}

			// Token: 0x06000813 RID: 2067 RVA: 0x0001317C File Offset: 0x0001137C
			private ServerNotifyResult PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					ServerNotifyResult other = this.result;
					this.result = new ServerNotifyResult();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}

			// Token: 0x1700033E RID: 830
			// (get) Token: 0x06000814 RID: 2068 RVA: 0x000131B8 File Offset: 0x000113B8
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}

			// Token: 0x1700033F RID: 831
			// (get) Token: 0x06000815 RID: 2069 RVA: 0x000131C5 File Offset: 0x000113C5
			protected override ServerNotifyResult MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}

			// Token: 0x06000816 RID: 2070 RVA: 0x000131CD File Offset: 0x000113CD
			public override ServerNotifyResult.Builder Clear()
			{
				this.result = ServerNotifyResult.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}

			// Token: 0x06000817 RID: 2071 RVA: 0x000131E2 File Offset: 0x000113E2
			public override ServerNotifyResult.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new ServerNotifyResult.Builder(this.result);
				}
				return new ServerNotifyResult.Builder().MergeFrom(this.result);
			}

			// Token: 0x17000340 RID: 832
			// (get) Token: 0x06000818 RID: 2072 RVA: 0x00013208 File Offset: 0x00011408
			public override MessageDescriptor DescriptorForType
			{
				get
				{
					return ServerNotifyResult.Descriptor;
				}
			}

			// Token: 0x17000341 RID: 833
			// (get) Token: 0x06000819 RID: 2073 RVA: 0x00005D47 File Offset: 0x00003F47
			public override ServerNotifyResult DefaultInstanceForType
			{
				get
				{
					return ServerNotifyResult.DefaultInstance;
				}
			}

			// Token: 0x0600081A RID: 2074 RVA: 0x0001320F File Offset: 0x0001140F
			public override ServerNotifyResult BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}

			// Token: 0x0600081B RID: 2075 RVA: 0x00013232 File Offset: 0x00011432
			public override ServerNotifyResult.Builder MergeFrom(IMessage other)
			{
				if (other is ServerNotifyResult)
				{
					return this.MergeFrom((ServerNotifyResult)other);
				}
				base.MergeFrom(other);
				return this;
			}

			// Token: 0x0600081C RID: 2076 RVA: 0x00013254 File Offset: 0x00011454
			public override ServerNotifyResult.Builder MergeFrom(ServerNotifyResult other)
			{
				if (other == ServerNotifyResult.DefaultInstance)
				{
					return this;
				}
				this.PrepareBuilder();
				if (other.HasSeqId)
				{
					this.SeqId = other.SeqId;
				}
				if (other.HasInfo)
				{
					this.Info = other.Info;
				}
				this.MergeUnknownFields(other.UnknownFields);
				return this;
			}

			// Token: 0x0600081D RID: 2077 RVA: 0x000132A8 File Offset: 0x000114A8
			public override ServerNotifyResult.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}

			// Token: 0x0600081E RID: 2078 RVA: 0x000132B8 File Offset: 0x000114B8
			public override ServerNotifyResult.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				UnknownFieldSet.Builder builder = null;
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(ServerNotifyResult._serverNotifyResultFieldNames, text, StringComparer.Ordinal);
						if (num2 < 0)
						{
							if (builder == null)
							{
								builder = UnknownFieldSet.CreateBuilder(this.UnknownFields);
							}
							this.ParseUnknownField(input, builder, extensionRegistry, num, text);
							continue;
						}
						num = ServerNotifyResult._serverNotifyResultFieldTags[num2];
					}
					if (num == 0u)
					{
						throw InvalidProtocolBufferException.InvalidTag();
					}
					if (num != 10u)
					{
						if (num != 18u)
						{
							if (WireFormat.IsEndGroupTag(num))
							{
								if (builder != null)
								{
									this.UnknownFields = builder.Build();
								}
								return this;
							}
							if (builder == null)
							{
								builder = UnknownFieldSet.CreateBuilder(this.UnknownFields);
							}
							this.ParseUnknownField(input, builder, extensionRegistry, num, text);
						}
						else
						{
							this.result.hasInfo = input.ReadString(ref this.result.info_);
						}
					}
					else
					{
						this.result.hasSeqId = input.ReadString(ref this.result.seqId_);
					}
				}
				if (builder != null)
				{
					this.UnknownFields = builder.Build();
				}
				return this;
			}

			// Token: 0x17000342 RID: 834
			// (get) Token: 0x0600081F RID: 2079 RVA: 0x000133BC File Offset: 0x000115BC
			public bool HasSeqId
			{
				get
				{
					return this.result.hasSeqId;
				}
			}

			// Token: 0x17000343 RID: 835
			// (get) Token: 0x06000820 RID: 2080 RVA: 0x000133C9 File Offset: 0x000115C9
			// (set) Token: 0x06000821 RID: 2081 RVA: 0x000133D6 File Offset: 0x000115D6
			public string SeqId
			{
				get
				{
					return this.result.SeqId;
				}
				set
				{
					this.SetSeqId(value);
				}
			}

			// Token: 0x06000822 RID: 2082 RVA: 0x000133E0 File Offset: 0x000115E0
			public ServerNotifyResult.Builder SetSeqId(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasSeqId = true;
				this.result.seqId_ = value;
				return this;
			}

			// Token: 0x06000823 RID: 2083 RVA: 0x0001340D File Offset: 0x0001160D
			public ServerNotifyResult.Builder ClearSeqId()
			{
				this.PrepareBuilder();
				this.result.hasSeqId = false;
				this.result.seqId_ = "";
				return this;
			}

			// Token: 0x17000344 RID: 836
			// (get) Token: 0x06000824 RID: 2084 RVA: 0x00013433 File Offset: 0x00011633
			public bool HasInfo
			{
				get
				{
					return this.result.hasInfo;
				}
			}

			// Token: 0x17000345 RID: 837
			// (get) Token: 0x06000825 RID: 2085 RVA: 0x00013440 File Offset: 0x00011640
			// (set) Token: 0x06000826 RID: 2086 RVA: 0x0001344D File Offset: 0x0001164D
			public string Info
			{
				get
				{
					return this.result.Info;
				}
				set
				{
					this.SetInfo(value);
				}
			}

			// Token: 0x06000827 RID: 2087 RVA: 0x00013457 File Offset: 0x00011657
			public ServerNotifyResult.Builder SetInfo(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasInfo = true;
				this.result.info_ = value;
				return this;
			}

			// Token: 0x06000828 RID: 2088 RVA: 0x00013484 File Offset: 0x00011684
			public ServerNotifyResult.Builder ClearInfo()
			{
				this.PrepareBuilder();
				this.result.hasInfo = false;
				this.result.info_ = "";
				return this;
			}

			// Token: 0x0400035F RID: 863
			private bool resultIsReadOnly;

			// Token: 0x04000360 RID: 864
			private ServerNotifyResult result;
		}
	}
}
